import request from '@/utils/request'
// 查询巡视报告分页信息
export const getbaogaolistapi = params => request.get('pio-microservice-biz/pio/tour-report/page', { params })
// 导出巡视报告数据
export const exportbaoapi = data => request.post('pio-microservice-biz/pio/tour-report/excel', data, { responseType: 'arraybuffer' })
// 根据ID获取巡视报告明细
export const getxiangqingapi = params => request.get('pio-microservice-biz/pio/tour-report/get', { params })
// 下载巡视报告
export const getxiazaibaogaoapi = data => request.post(`pio-microservice-biz/pio/tour-report/download/pdf?id=${data.id}`, { responseType: 'blob' })
// 仅保存报告的描述信息（主表+房间）
export const getbaocunapi = data => request.post('pio-microservice-biz/pio/tour-report/description/save', data)
// 推送巡视报告
export const posttuisongapi = data => request.post(`pio-microservice-biz/pio/tour-report/send/pdf?id=${data.id}`)
// 查询签名文件
export const getSignFileByTaskId=params=>request.get('/pio-microservice-biz/pio/tour/mobile/getSignFileByTaskId',{params})